<script></script>
<%@page import="com.pengtu.gsj.entity.app.User"%>
<%@page import="com.pengtu.gsj.security.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<style>
    html, body {
    width: 100%;
    height: 100%;
    font-family: 'Microsoft Yahei', Helvetica, Arial, sans-serif;
    line-height: 1; }
.footer{min-width:1180px;
background:url(/gsj/images/footer_bg.png);

    position: fixed;z-index:999;
    left: 0px;
    bottom: 0px;
    width: 100%;

height: 35px !important;
    color: #fff;
    font-size: 14px;
}

.footer .left{
float:left;margin-left:25px;
display: block;
margin-right: 20px;
	margin-top: 11px;
}
.footer .right{
float: right;
	white-space: pre-wrap;
margin-right: 25px;
	margin-top: -8px;
    text-align: right;
}
    .footer .right p {
        display: inline-block;
        margin-bottom: 5px;
    }
    div.loog {display:none;
        float: left;
        width: 350px;
        height: 30px;
        margin-top: 6px;
        margin-left: 40px;
        background-image: url('${ctx}/styles/images/btn.png');
        background-repeat: no-repeat;
    }
</style>
<div class="footer row-fluid">
<div class="loog"></div>
<span class="right" style="width:auto;background:none;border:none;"><p>&nbsp;</p><br/>监制单位：深圳市交通公用设施管理局       <!--  技术支持： 深圳市鹏途交通科技有限公司 --></span>
	<span class="left" style="width:auto;background:none;border:none;"> <c:if
		test="${pageContext.request.remoteUser != null}">
<%-- 	当前单位: <%=((User)SpringSecurityUtils.getCurrentUser()).getEmploye().getOrgName()%> --%>
	技术支持: 深圳市鹏途交通科技有限公司
</c:if> </span><div style="clear:both;"></div>
</div>
<script type="text/javascript"> 
$(window).bind("load", function() {
	var footerHeight = 0, 
	footerTop = 0, 
	$footer = $(".footer"); 
	setTimeout(positionFooter, 150);
	//定义positionFooter function 
	function positionFooter() { 
	//取到div#footer高度 
	footerHeight = $footer.height(); 
	//div#footer离屏幕顶部的距离
    var scrollTop = $(window).scrollTop();
	$('<span class="white"></span>').appendTo($('div#head')).css({
		position: 'absolute',
		bottom: '-2px',
		height: '2px',
		width: '100%',
		'background-color': '#fff'
	});
    var h = Math.max($(".container-fluid").height() + 100, $(window).height()) - $footer.height();
	//var he = $("div.span10").height();
	//$('div.span2').css('height', he + 'px');
	var vh = h - $footer[0].offsetTop;
    vh > 0 && $footer.css({
	});
	}
	});
	
 	$(function(){
 		function auto(){
 			//定义
 			var x = $(window).height();
 			var y = x-115;
 			var height = y*0.96;
 			var h = height-45-$(".span10 .nav-tabs").height()*1.3;
 			var autoHeight = height-65;
 			var roadPropertyHeight =height - 155;
 			var tsHeight = height - 140;
 			var he = height-70;
 			var propertyHeight =  height-105;
 			var xjHeight = height-40;
 			var fHeight = height - 50;
 			var m = height - 60;
 			var hei = height - 115;
 			var map = height - 80;
 			//alert(x)
 		
 			//height
 			$(".map").height(map);
 			$(".tsHeight").height(tsHeight);
 	 		$(".row-fluid .span2").height(x-110);
 	 		$(".row-fluid .span10").height(x-110);
 	 		//$(".container").height(x-210);
 	 		$(".roadPropertyHeight").height(roadPropertyHeight);
 	 		//$(".propertyHeight").height(propertyHeight);
 	 		//$(".span10 .autoHeight").height(autoHeight);
 	 		$(".tsheight").height(height-50);
 	 		$(".fHeight").height(fHeight);
 			$(".hei").height(hei);
 			$(".he").height(he);
 			//$(".m").height(m);
 			$(".xjHeight").height(xjHeight);
 			
 			//css
 	 		$(".container").css({"overflow":"auto"});
 	 		$(".span10 #inputForm").css({"overflow":"auto"});
 	 		$(".span2").css({"width":"235px","overflow":"auto"});
 	 		$(".span2 .main-sidebar").css({"width":"100%","height":"auto"});
 	 		$(".span10").css({"width":($(window).width()-237)+"px","margin":"0 0 0 2px"});
 	 		$(".container-fluid").css({"margin":"0"});
 	 		$(".panel-body .container").css({"height":"auto","padding-bottom":"0px"});
 		}auto();
 	 	$(window).resize(function(){auto();});
 	});
</script> 
